package vn.mahjonggame.util;

import java.util.Comparator;

import vn.mahjonggame.metadata.Tile;

public class TileComparator implements Comparator<Tile> {

	@Override
	public int compare(Tile o1, Tile o2) {
		if(o1.getId() > o2.getId()){
			return 1;
		}
		else if(o1.getId() == o2.getId()){
			return 0;
		}
		else 
			return -1;
	}

}
